// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'id',
        footer: "Foots",
        cnName: '设备台账',
        name: 'equipment_ledger',
        url: "/equipment_ledger/",
        sortName: "id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"asset_number":"","code":"","name":"","type":"","model":"","brand":"","specification":"","num":"","supplier":"","workshop_affiliation":"","date_of_manufacture":"","entry_date_to_the_factory":"","location":"","department":"","person_in_charge":"","remark":""};
    const editFormOptions = [[{"title":"设备序列号","field":"asset_number","disabled":true,"colSize":12,"type":"text"}],
                              [{"title":"编码","field":"code","colSize":6,"type":"text"},
                               {"title":"名称","field":"name","colSize":6,"type":"text"}],
                              [{"dataKey":"设备类型","data":[],"title":"类型","field":"type","colSize":12,"type":"select"}],
                              [{"title":"品牌","field":"brand","colSize":6,"type":"text"},
                               {"title":"型号","field":"model","colSize":6,"type":"text"}],
                              [{"title":"规格","field":"specification","colSize":12,"type":"text"}],
                              [{"title":"数量","field":"num","colSize":12,"type":"text"}],
                              [{"dataKey":"SLY_Supplier","data":[],"title":"供应商","field":"supplier","colSize":6,"type":"select"},
                               {"dataKey":"车间表下拉","data":[],"title":"所属车间","field":"workshop_affiliation","colSize":6,"type":"select"}],
                              [{"title":"生产日期","field":"date_of_manufacture","colSize":12,"type":"date"}],
                              [{"title":"入厂日期","field":"entry_date_to_the_factory","colSize":12,"type":"date"}],
                              [{"title":"位置","field":"location","colSize":12,"type":"text"}],
                              [{"dataKey":"部门级联","data":[],"title":"使用部门","field":"department","colSize":12,"type":"select"}],
                              [{"title":"责任人","field":"person_in_charge","colSize":10,"type":"text"}],
                              [{"title":"备注","field":"remark","colSize":12,"type":"textarea"}]];
    const searchFormFields = {"asset_number":"","code":"","name":"","one":""};
    const searchFormOptions = [[{"title":"设备序列号","field":"asset_number","type":"="},{"title":"编码","field":"code","type":"="},{"title":"名称","field":"name","type":"like"},{"dataKey":"status","data":[],"title":"状态","field":"one","type":"select"}]];
    const columns = [{field:'id',title:'id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'asset_number',title:'设备序列号',type:'string',width:110,readonly:true,align:'left'},
                       {field:'code',title:'编码',type:'string',width:220,align:'left'},
                       {field:'name',title:'名称',type:'string',width:110,align:'left'},
                       {field:'type',title:'类型',type:'string',bind:{ key:'设备类型',data:[]},width:120,align:'left'},
                       {field:'one',title:'状态',type:'string',bind:{ key:'status',data:[]},width:220,align:'left'},
                       {field:'specification',title:'规格',type:'string',width:120,align:'left'},
                       {field:'model',title:'型号',type:'string',width:120,align:'left'},
                       {field:'brand',title:'品牌',type:'string',width:120,align:'left'},
                       {field:'num',title:'数量',type:'int',width:110,align:'left'},
                       {field:'date_of_manufacture',title:'生产日期',type:'datetime',width:150,align:'left'},
                       {field:'entry_date_to_the_factory',title:'入厂日期',type:'datetime',width:150,align:'left'},
                       {field:'supplier',title:'供应商',type:'string',bind:{ key:'SLY_Supplier',data:[]},width:120,align:'left'},
                       {field:'workshop_affiliation',title:'所属车间',type:'string',bind:{ key:'车间表下拉',data:[]},width:120,align:'left'},
                       {field:'location',title:'位置',type:'string',width:120,align:'left'},
                       {field:'department',title:'使用部门',type:'string',bind:{ key:'部门级联',data:[]},width:120,align:'left'},
                       {field:'person_in_charge',title:'责任人',type:'string',width:120,align:'left'},
                       {field:'remark',title:'备注',type:'string',width:120,align:'left'},
                       {field:'createdusername',title:'创建人',type:'string',width:110,align:'left'},
                       {field:'createdtime',title:'创建时间',type:'datetime',width:150,align:'left'},
                       {field:'updatetime',title:'更新时间',type:'datetime',width:150,align:'left'},
                       {field:'record',title:'履历',type:'string',width:220,hidden:true,align:'left'},
                       {field:'two',title:'扩展字段2',type:'string',width:220,hidden:true,align:'left'},
                       {field:'three',title:'扩展字段3',type:'string',width:220,hidden:true,align:'left'},
                       {field:'updateusername',title:'修改人',type:'string',width:110,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}